import org.lwjgl.opengl.GL11;


public class ObjectBullet {
	private long bulletTTL;
	
	public ObjectBullet(long TTL){
		bulletTTL = TTL;
	}
	
	public long getBulletTTL(){
		return bulletTTL;
	}
	
	
	//method for rendering bullet 
	public static void renderBullet(float x, float y, float z){
	    GL11.glBegin(GL11.GL_QUADS);
	    // width, height, length
	    GL11.glVertex3f( x-1,  y-1, z-1);    // 1.spredaj
	    GL11.glVertex3f( x-1,  y, z-1);    // 2.
	    GL11.glVertex3f( x,  y, z-1);    // 3.
	    GL11.glVertex3f( x,  y-1, z-1);    // 4.
	    
	    //GL11.glColor3f(1f, 1f, 0f);
	    GL11.glVertex3f( x-1,  y-1, z-1);    // 1.
	    GL11.glVertex3f( x,  y-1, z-1);    // 2.
	    GL11.glVertex3f( x,  y-1, z);    // 1.leva stranska
	    GL11.glVertex3f( x-1,  y-1, z);    // 2.
	    
	    //GL11.glColor3f(0f, 1f, 0f);
	    GL11.glVertex3f( x-1,  y-1, z-1);    // 5.
	    GL11.glVertex3f( x-1,  y-1, z);    // 6.spredaj stranska
	    GL11.glVertex3f( x-1,  y, z);    // 7.
	    GL11.glVertex3f( x-1,  y, z-1);    // 8.
	    
	    //GL11.glColor3f(0f, 0f, 1f);
	    GL11.glVertex3f( x-1,  y, z-1);    // 5. zadaj stranska
	    GL11.glVertex3f( x-1,  y, z);    // 6.
	    GL11.glVertex3f( x,  y, z);    // 7.
	    GL11.glVertex3f( x,  y, z-1);    // 8.
	    
	    //GL11.glColor3f(0f, 1f, 1f);
	    GL11.glVertex3f( x,  y-1, z);    // 6.
	    GL11.glVertex3f( x,  y-1, z-1);    // 5.
	    GL11.glVertex3f( x,  y, z-1);    // 7.
	    GL11.glVertex3f( x,  y, z);    // 8.
	    
	    //GL11.glColor3f(1f, 0f, 0f);
	    GL11.glVertex3f( x-1,  y-1, z);    // 5.zadaj
	    GL11.glVertex3f( x,  y-1, z);    // 6.
	    GL11.glVertex3f( x,  y, z);    // 7.
	    GL11.glVertex3f( x-1,  y, z);    // 8.
	    GL11.glEnd(); 
	}
	
}
